package com.project.bean;

/**
 * 评论实体类
 */
public class AssessBean {
//  评论id
    private Integer id;
//    评论内容
    private String content;
//    用户对象
    private UserBean user;
//    商品对象
    private GoodsBean goods;
//
   public AssessBean(){}
    public AssessBean(String content, int userId, int goodsId) {
       this.user=new UserBean();
       user.setId(userId);
        this.content = content;
        this.goods = new GoodsBean();
        goods.setId(goodsId);
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public UserBean getUser() {
        return user;
    }

    public void setUser(UserBean user) {
        this.user = user;
    }

    public GoodsBean getGoods() {
        return goods;
    }

    public void setGoods(GoodsBean goods) {
        this.goods = goods;
    }

    @Override
    public String toString() {
        return "AssessBean{" +
                "id=" + id +
                ", content='" + content + '\'' +
                ", user=" + user +
                ", goods=" + goods +
                "}\n";
    }
}
